﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsCenter.aspx.cs" Inherits="Mall.NewsCenter" %>
<%@ Register Src="usercontrol/Top.ascx" TagName="uchead" TagPrefix="headuc" %>
<%@ Register Src="usercontrol/Footer.ascx" TagName="ucfooter" TagPrefix="footeruc" %>
<%
    string urlmore = "/list?t=mc";


    string url = "/newscenter?t=mc";
    if (!string.IsNullOrEmpty(action))
    {

        url = url + "&action=" + action;
    }
    if (!string.IsNullOrEmpty(page))
    {
        urlmore = urlmore + "&page=" + page;
    }
    if (!string.IsNullOrEmpty(id))
    {

        url = url + "&id=" + id;
        urlmore = urlmore + "&id=" + id;
    }
    %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>新闻中心</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META 
content= "" name=Description>
<META content= name=Keywords><LINK media=screen 
href="/content/images/mkl/global.css" 
type=text/css rel=stylesheet>
<LINK media=screen 
href="/content/images/mkl/helpv2.css" 
type=text/css rel=stylesheet>
<LINK media=screen 
href="/content/images/mkl/hp4v1.css" 
type=text/css rel=stylesheet>
<LINK media=screen 
href="/content/images/mkl/n.css" 
type=text/css rel=stylesheet>
<SCRIPT 
src="/content/images/mkl/jquery-1.3.2.min.js" 
type=text/javascript></SCRIPT>
<SCRIPT 
src="/content/images/mkl/countDown.js" 
type=text/javascript></SCRIPT>
<meta name="description" content="打造中国外贸商品第一网络内销商城">
<meta name="keywords" content="b2c,网店，建站">
 
<META content="MSHTML 6.00.6000.17080" name=GENERATOR></HEAD>
<BODY id=hp>
<script language="javascript">
    function AddFavorite() {
        var url = window.location.href;
        try {
            window.external.addFavorite(url, "--中国外贸商品网络内销商城");
        }
        catch (e) {
            try {
                window.sidebar.addPanel("--中国外贸商品网络内销商城", url, "--中国外贸商品网络内销商城");
            }
            catch (e) {
                alert("加入收藏失败，请使用Ctrl+D进行添加");
            }
        }
    }
 
 
</script>
<headuc:uchead ID="headuc" runat="server" />
 
<DIV class="wrap m10"><IMG title=新闻中心 src="/content/images/mkl/news-banner.jpg"></DIV>
<DIV class="wrap m10">
<DIV class=col_2_a>
<DIV class=helpSlide>
<DIV class="border-blue help-item">
<DL class=border-blue-b>
  <DT class="border-blue-b f14 fb" id=hct-1>新品推荐 
 <%= html_str_newsmcview_left_new%>
 </DD></DL>
<DL class=border-blue-b>
  <DT class="border-blue-b f14 fb" id=hct-2>热销商品 
 
  <%=html_str_newsmcview_left_hot%>
  </DD></DL>
  <DL class=border-blue-b>
  <DT class="border-blue-b f14 fb" id=hct-2>最近浏览
 <%=html_str_newsmcview_left_his%>
  </DD></DL>
</DIV>
</DIV></DIV>
<DIV class=col_2_b>
<TABLE class=n-r-t>
  <THEAD>
  <TR>
    <TH class=t1>标题</TH>
  </TR></THEAD>
  <TBODY>
 <%foreach(System.Data.DataRow dr in dt.Rows ){ %>
    

                                  <tr>
                                    <td  height="20"><a href="/NewsMcViews?Id=<%=dr["id"].ToString() %>"><%=dr["name"].ToString() %></a></td>
                                  </tr>
                                  

   <%} %>                               
 
 
  <TR   >
    <TD  >              <br>总计 <%=countt %> 篇文章 &nbsp;
    <%if (page == "1")
      { %>
    <font color=darkgray>首页 前页</font>

    <% }
          
      else
      {%>
       <font color=darkgray><a  style=" display:inherit" href="<%=url %>&page=1">首页 </a><a  style=" display:inherit" href="<%=url %>&page=<%=(Convert.ToInt32(page)-1).ToString() %>">前页</a></font>
      <% }%>
        <%if(page==pagecount){ %>
         <font color=darkgray>下页 末页</font>
          <% }else{%>
          <font color=darkgray><a style=" display:inherit" href="<%=url %>&page=<%=(Convert.ToInt32(page)+1).ToString() %>">下页 </a><a  style=" display:inherit" href="<%=url %>&page=<%=pagecount %>">末页</a></font>
            <% }%>
     &nbsp; 第<%=page %>页 共<%=pagecount %>页  </TD></TR>
	</TBODY></TABLE>
</DIV></DIV>
 
<footeruc:ucfooter ID="footeruc" runat="server" />
<SCRIPT src="/content/images/mkl/o_code.js" type=text/javascript></SCRIPT>
</BODY></HTML>

